package com.hyfrogx.modules.information.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyfrogx.modules.information.entity.InfoClassify;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author liubin
 * @date 2019/10/31 16:43
 */
@Mapper
public interface InfoClassifyDao extends BaseMapper<InfoClassify> {

  /*
   * 2018.2.28新增资讯类别排序
   */
  void updateSort(@Param("items") List<InfoClassify> list);

  /**
   * 查询分类最大排序号
   * @return
   */
  @Select("select max(sort) from\n" +
    "\t\thy_info_classify")
  Integer findMaxSort();
}
